package com.nbcio.modules.erp.voucher.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 财务凭证明细实体
 */
@Data
@TableName("erp_voucher_entry")
public class ErpVoucherEntry {
    @TableId
    private Long entryId;
    private Long voucherId;
    private Integer entryNo;
    private Long accountId;
    private String dcFlag; // DEBIT/CREDIT
    private BigDecimal amount;
    private String summary;
    private BigDecimal quantity;
    private BigDecimal unitPrice;
    private LocalDateTime createTime;
}

